package cn.gjh.bookmanager.study;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class DeptConfig {

    /*提供方法*/
    @Bean(initMethod = "initAA")
    public Dept dept(){
        Dept dept = new Dept();
        dept.setName("研发部");
        return dept;
    }
}
